package com.wyk.mapper;

import com.wyk.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    @Select("select  * from  user where id=#{id}")
    public User findUserByid(Integer id);

    @Delete("delete  from user where  id=#{id}")
    void delete(Integer id);

    void deletes(@Param("arr") int [] arr);

    void add(User user);

    void update(User user);
}
